package com.training1.core.modules.service;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.training1.core.common.service.CrudService;
import com.training1.core.entity.User;
import com.training1.core.modules.dao.UserTestDao;

@Service
@Transactional
public class UserTestService extends CrudService<UserTestDao, User>{

	/**
	 * 判断用户名是否存在
	 * @param user
	 * @return 
	 */
	public boolean isUserExist(User user){
		return dao.isUserExist(user) != null;
	}
	
}
